<template>
	<view class="topic-list grace-border-b grace-flex" @click="goToTopicDetail">
		<image :src="item.pic" mode="widthFix" lazy-load></image>
		<view class="grace-flex1 grace-wrap">
			<view class="grace-black" style="font-size: 38rpx;">#{{ item.title }}#</view>
			<view class="grace-black9">{{ item.desc }}</view>
			<view class="grace-black9">动态 {{ item.totalNum }}今日 {{ item.todayNum }}</view>
		</view>
	</view>
</template>

<script>
var graceJS = require('@/Grace.JS/grace.js');
export default {
	props: {
		item: Object
	},
	data() {
		return {};
	},
	methods: {
		goToTopicDetail() {
			graceJS.navigate('../topic-detail/topic-detail');
		}
	}
};
</script>

<style lang="stylus">
.topic-list
	padding 30rpx 0
	image
		width 180rpx
		height 180rpx
		border-radius 20rpx
		margin-right 30rpx
</style>
